package com.yangzihao.mapper;

import com.yangzihao.entity.NewsDetail;

import java.util.List;

public interface NewsDetailMapper {

    /*增加新闻*/
    public void insertNewsDet(NewsDetail newsDetail);

    List<NewsDetail> findByCondition(NewsDetail newsDetail);

    NewsDetail findById(Integer id);

    void updateDetail(NewsDetail newsDetail);

    NewsDetail findByTitle(String title);
}
